package com.oasystem.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.view.RedirectView;

@Controller
@RequestMapping(value = "MainMenu")
public class MainMenuController {

	@RequestMapping(value = "/members")
	public ModelAndView members(Model model) {
		return new ModelAndView(new RedirectView("members/addMemberPage.htm"));
	}

	@RequestMapping(value = "/profit")
	public ModelAndView profit(Model model) {
		return new ModelAndView(new RedirectView("profit/addPage.htm"));
	}
	
	@RequestMapping(value = "/configuration")
	public ModelAndView configuration(Model model) {
		return new ModelAndView(new RedirectView("configuration/operatorPage.htm"));
	}
	
}
